package leetcode100;

import java.util.Arrays;

/**
 * @author shkstart
 * @create 2022-11-18-10:57
 */
public class TEst {
    public static void main(String[] args) {
        String str = "123";
        int length = str.length();
        int arr[]=new int[length];

        for (int i = 0; i < length; i++) {
            int temp = Integer.parseInt(String.valueOf(str.charAt(i)));
            arr[i]=temp;
        }
        System.out.println(Arrays.toString(arr));

    }
}
